import { createApp } from 'vue'
import App from './App.vue'
import { router } from "@/router";
import axios from "@/util/request";
import { Form, Field, CellGroup, Col, Row, NavBar, Card, Search, Tabbar, TabbarItem, Icon, Popover, Sticky, List, } from 'vant';
import { ActionBar, ActionBarIcon, ActionBarButton, ActionSheet, Tab, Tabs, Cell, Badge, PullRefresh } from 'vant';
import 'vant/es/dialog/style';
import 'vant/es/notify/style';
import 'vant/es/toast/style';
import CScrollbar from 'c-scrollbar';

const app = createApp(App);
app.use(router);
app.use(Form);
app.use(Field);
app.use(CellGroup);
app.use(Col);
app.use(Row);
app.use(NavBar);
app.use(Card);
app.use(Search);
app.use(Tabbar);
app.use(TabbarItem);
app.use(Icon);
app.use(Popover);
app.use(Sticky);
app.use(List);
app.use(ActionBar);
app.use(ActionBarIcon);
app.use(ActionBarButton);
app.use(ActionSheet);
app.use(Tab);
app.use(Tabs);
app.use(Cell);
app.use(Badge);
app.use(PullRefresh);
app.use(CScrollbar);
app.mount('#app');
app.config.globalProperties.$axios = axios;
